package kuangshen.start;

//实现多线程方法1 继承Thread
public class ThreadTest  extends Thread{

    @Override
    public void run(){
        for (int i = 0; i < 1000; i++) {
            System.out.println("我在实现多线程");
        }

    }

    public static void main(String[] args) {
//        Thread thread = new ThreadTest();
//        thread.start();
        new ThreadTest().start();
//        new Thread(new Runnable() {
//            @Override
//            public void run() {
//
//            }
//        }).start();
        for (int i = 0; i < 1000; i++) {
            System.out.println("我在学习多线程！！！"+i);
        }

    }
}
